package Utils;

import java.util.ArrayList;
import java.util.List;

import GsonBean.SgqdBean;

/**
 * Created by Jianqi on 2017\9\4 0004.
 *
 * @function 抽取公共方法, 定义PopupWindow的属性
 */

public class PopUtils {

    public static List<SgqdBean.SgqdListBean> mList = new ArrayList<>();

    //筛选条件搜索的List数据
    public static List<SgqdBean.SgqdListBean> getSearchList(List<SgqdBean.SgqdListBean> mSelectList, String condition) {
        int length = mSelectList.size();
        for (int i = 0; i < length; i++) {
            if (mSelectList.get(i).getAreaName().contains(condition)) {
                mList.add(mSelectList.get(i));
            }
        }
        return mList;
    }

}
